[API] Add notification endpoint#9488
Merged
zeripath merged 6 commits intogo-gitea:masterfrom Jan 9, 2020
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9488 +/- ##
==========================================
+ Coverage 42.22% 42.22% +<.01%
==========================================
Files 587 587
Lines 77947 77947
==========================================
+ Hits 32915 32917 +2
Misses 40994 40994
+ Partials 4038 4036 -2
Continue to review full report at Codecov.
|
lunny
reviewed
Dec 25, 2019
zeripath
approved these changes
Dec 25, 2019
Member
Author
Contributor
|
I didn't notice that you hadn't finished! that's what I get for reviewing whilst drinking! What you've written so far looks reasonable! 🎄 ☃️ Merry Christmas ☃️ 🎄 |
6693aae to
5e58bdf
Compare
6543
commented
Jan 3, 2020
6543
commented
Jan 3, 2020
6543
commented
Jan 3, 2020
adelowo
suggested changes
Jan 3, 2020
6543
commented
Jan 3, 2020
* add func GetNotifications(opts FindNotificationOptions)
* add func (n *Notification) APIFormat()
* add func (nl NotificationList) APIFormat()
* add func (n *Notification) APIURL()
* add func (nl NotificationList) APIFormat()
* add LoadAttributes functions (loadRepo, loadIssue, loadComment, loadUser)
* add func (c *Comment) APIURL()
* add func (issue *Issue) GetLastComment()
* add endpoint GET /notifications
* add endpoint PUT /notifications
* add endpoint GET /repos/{owner}/{repo}/notifications
* add endpoint PUT /repos/{owner}/{repo}/notifications
* add endpoint GET /notifications/threads/{id}
* add endpoint PATCH /notifications/threads/{id}
Member
Author
|
@adelowo done |
lafriks
requested changes
Jan 9, 2020
6543
commented
Jan 9, 2020
6543
commented
Jan 9, 2020
6543
commented
Jan 9, 2020
6543
commented
Jan 9, 2020
7 tasks
sapk
pushed a commit
that referenced
this pull request
Jan 14, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close #4811
This is the main PR adding Notification Endpoint ...
[Spec Link]
Changes
GET /notifications[spec]PUT /notifications[spec]GET /repos/{owner}/{repo}/notifications[spec]PUT /repos/{owner}/{repo}/notifications[spec]GET /notifications/threads/{id}[spec]PATCH /notifications/threads/{id}[spec]future imprufements:
PATCH /notifications/threads/{id}option to mark as pin/unread